package com.kma.summer2012.client.view.rejectrequest;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.Widget;
import com.kma.summer2012.client.presenters.reject.endRejectPresenter;
import com.kma.summer2012.client.styles.style2.Recources;

public class endRejectView extends Composite implements endRejectPresenter.Display {


    interface endRejectViewUiBinder extends UiBinder<Widget, endRejectView> {
    }

    private static endRejectViewUiBinder ourUiBinder = GWT.create(endRejectViewUiBinder.class);

    @UiField
    protected Button homeButton;

    public endRejectView() {
        HTMLPanel rootElement = (HTMLPanel) ourUiBinder.createAndBindUi(this);
        homeButton.addStyleName(Recources.INSTANCE.styles().Caption());
        initWidget(rootElement);

    }

    @Override
    public HasClickHandlers getHome() {
        return this.homeButton;
    }

    public Widget asWidget() {
        return this;
    }
}